﻿using Core.Entities;
using Core.Enums;
using System;

namespace Core.Writer
{
    /// <summary>
    /// 数据写入器接口
    /// </summary>
    public interface IDataWriter : IDisposable
    {
        object this[string Name] { set; }
        object this[int Index] { set; }
        void Add(string Name, object Value);
        void Next();
        RWTypes ObjectType { get; set; }
        IDataWriter CreateChildrenWriter(CreateChildrenWriterInfo Info);
    }
}